package com.orionlily.redis3t.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author li.lc
 */
@Data
public class User {
    private Long id;
    private String name;
    private String account;
    private String password;
    private String email;
    private String tel;
    /**
    JsonFormat ：出参
    DateTimeFormate ： 入参
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime birthday;
}
